<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style>
        a {
            text-decoration: none;
            border: none;
            border-radius: 3px;
            display: block;
            float: left;
            width: 50px;
            height: 20px;
            background-color: #4f8ce0;
            color:white;
            text-align: center;
            white-space: nowrap;
            /*font-size: 15px;*/
            font: 14px Arial, Helvetica, sans-serif, "新宋体";
        }
    </style>
</head>
<body>
<table border="1px" width="100%" walign="center" cellpadding="0" cellspacing="0">
    <tr>
        <th width="10%">ID</th>
        <th width="20%">用户名</th>
        <th width="20%">密码</th>
        <th width="15%">年龄</th>
        <th width="15%">性别</th>
        <th width="20%">操作</th>
    </tr>
    <c:forEach items="${users}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.username}</td>
            <td>${user.password}</td>
            <td>${user.age}</td>
            <td>
                <c:if test="${user.sex==1}">男</c:if>
                <c:if test="${user.sex==0}">女</c:if>
            </td>
            <td><a style="margin-right: 10px;margin-left: 50px" href="userAction_edit.action?id=${user.id}">修改</a>

                <a href="userAction_delete.action?id=${user.id}">删除</a></td>
        </tr>
    </c:forEach>


    </tr>
</table>
</body>
</html>
